home *** CD-ROM | disk | FTP | other *** search
- #Options +B +E -G -H +J +K +Z
- #asm
- .verbose
- #endasm
- #include "MyTools.p"
- #include "MS.h"
- //============================
- MSPROC3(theMSP,menuID,itemNumber,flg)
- MSPtr theMSP;
- short menuID;
- short itemNumber,flg;
- //=========================
- BEGIN_FCT
- int i,j,k;
- short limTab[2];
- char s1[256],s2[256];
-
- IF (NOT MSParsePROC(theMSP,0,&limTab[0]))
- THEN
- return (_MSMIVTER-1);
- ELSE
- FOR (i=limTab[0];i LE limTab[1];i++)
- if (theMSP->MVT[i].opCode EQ _MVMENLIN)
- continue;
- GetItem(theMSP->MH,i,s1);
- PtoCstr(s1);
- j=NULL;
- while (NOT isdigit(*(s1+j)) AND j LT strlen(s1))
- j++;
- IF (j LT strlen(s1))
- THEN
- k=NULL;
- WHILE (isdigit(*(s1+j)) AND j LT strlen(s1))
- *(s2+k)=*(s1+j);
- j++;k++;
- ENDWHILE
- *(s2+k)='\0';
- CtoPstr(s2);
- StringToNum(s2,&k);
- *((*theMSP->MIVTH)+i)=k;
- ENDIF
- ENDFOR
- return (_MSMIVTOK);
- ENDIF
- END_FCT
- main()
- {}